<template>
    <div>
        展示
        <table border="1">
            <tr>
                <td>id</td>
                <td>分类名</td>
            </tr>
            <tr v-for="i in from">
                <td>{{i.id}}</td>
                <td>{{i.name}}</td>
            </tr>
        </table>
    </div>
</template>

<script>
    export default {
        data(){
            return{
                from:{}
            }
        },
        methods:{
            show(){
                this.$axios.get('user/').then(res=>{
                    this.from=res.data
                })
            }
        },
        mounted(){}
    }
</script>

<style scoped>

</style>